﻿// //  ********************************************************************************
// //  Copyright (C) 2016 Sebastian Kenter. All rights reserved.
// // 
// //  Name    : PhotonServerProject | PhotonServerCommon | ClientPeerTMap.cs
// //  Created : 2016 - 03 - 21 13:43
// //  Modified: 2016 - 04 - 18 09:38
// //  ********************************************************************************

using FluentNHibernate.Mapping;
using PhotonServerCommon.Entities.Domain;

namespace PhotonServerCommon.Entities.Mapping
{
    public class ClientpeerTMap : ClassMap<ClientPeerT>
    {
        public ClientpeerTMap()
        {
            Schema("mseconfig");
            Table("clientpeer_t");
            Id(x => x.PeerId).GeneratedBy.Assigned().Column("PeerId");
            Map(x => x.ConnectedServerId).Column("ConnectedServerId").Not.Nullable();
            Map(x => x.ConnectionId).Column("ConnId").Not.Nullable();
            Map(x => x.Connected).Column("Connected").Not.Nullable();
            Map(x => x.LocalIp).Column("LocalIp").Not.Nullable();
            Map(x => x.LocalPort).Column("LocalPort").Not.Nullable();
            Map(x => x.PeerType).Column("PeerType").Not.Nullable();
            Map(x => x.Protocol).Column("Protocol").Not.Nullable();
            Map(x => x.RemoteIp).Column("RemoteIp").Not.Nullable();
            Map(x => x.RemotePort).Column("RemotePort").Not.Nullable();
            Map(x => x.Version).Column("Version").Not.Nullable();
            Map(x => x.DzIns).Column("DzIns").Not.Nullable();
            Map(x => x.DzUpd).Column("DzUpd").Not.Nullable();
            Map(x => x.NamUpd).Column("NamUpd").Not.Nullable();
            Map(x => x.Tsn).Column("Tsn").Not.Nullable();
        }
    }
}
